package com.topisv.tms.rest.qimen.qmentity.request.deliveryorder;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 发货单明细
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2015-5-8      CC            1.0           Create
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class DeliveryOrderItem {
	@XmlElement(name = "orderLineNo")
	private String orderLineNo;
	@XmlElement(name = "sourceOrderCode")
	private String sourceOrderCode;
	@XmlElement(name = "subSourceOrderCode")
	private String subSourceOrderCode;
	
	@NotBlank
	@XmlElement(name = "ownerCode")
	private String ownerCode;
	
	@NotBlank
	@XmlElement(name = "itemId")
	private String itemId;
	
	@NotBlank
	@XmlElement(name = "itemCode")
	private String itemCode;
	@XmlElement(name = "itemName")
	private String itemName;
	@XmlElement(name = "extCode")
	private String extCode;
	
	@Min(value=1)
	@XmlElement(name = "planQty")
	private Integer planQty;
	@XmlElement(name = "retailPrice")
	private Double retailPrice;
	
	@NotNull
	@XmlElement(name = "actualPrice")
	private Double actualPrice;
	@XmlElement(name = "discountAmount")
	private Double discountAmount;

	public String getSourceOrderCode() {
		return sourceOrderCode;
	}

	public void setSourceOrderCode(String sourceOrderCode) {
		this.sourceOrderCode = sourceOrderCode;
	}

	public String getSubSourceOrderCode() {
		return subSourceOrderCode;
	}

	public void setSubSourceOrderCode(String subSourceOrderCode) {
		this.subSourceOrderCode = subSourceOrderCode;
	}

	public String getItemCode() {
		return itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getExtCode() {
		return extCode;
	}

	public void setExtCode(String extCode) {
		this.extCode = extCode;
	}

	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public Integer getPlanQty() {
		return planQty;
	}

	public void setPlanQty(Integer planQty) {
		this.planQty = planQty;
	}

	public Double getRetailPrice() {
		return retailPrice;
	}

	public void setRetailPrice(Double retailPrice) {
		this.retailPrice = retailPrice;
	}

	public Double getActualPrice() {
		return actualPrice;
	}

	public void setActualPrice(Double actualPrice) {
		this.actualPrice = actualPrice;
	}

	public Double getDiscountAmount() {
		return discountAmount;
	}

	public void setDiscountAmount(Double discountAmount) {
		this.discountAmount = discountAmount;
	}

	public String getOrderLineNo() {
		return orderLineNo;
	}

	public void setOrderLineNo(String orderLineNo) {
		this.orderLineNo = orderLineNo;
	}

	public String getOwnerCode() {
		return ownerCode;
	}

	public void setOwnerCode(String ownerCode) {
		this.ownerCode = ownerCode;
	}

}
